package com.lm56.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertieUtils {

	public static Object get(String path,String key) throws IOException {
		//InputStream in = PropertieUtils.class.getClassLoader().getResourceAsStream("com/joymain/bas/common/test.properties");
		InputStream in = PropertieUtils.class.getClassLoader().getResourceAsStream(path);
		Properties p = new Properties();
		p.load(in);
		return p.get(key);
	}
}
